<template>
<div>
  <el-menu
      style="width: 200px;min-height: calc( 100vh - 50px )"
      :default-active="path"
      router
      class="el-menu-vertical-demo"
  >
<!--    <el-sub-menu index="1">-->
<!--      <template #title>系统管理</template>-->
<!--      <el-menu-item index="user" :route="{path:'/'}">用户管理</el-menu-item>-->
<!--    </el-sub-menu>-->
    <el-menu-item index="user" :route="{path:'/'}">用户管理</el-menu-item>
    <el-menu-item index="map" :route="{path:'/map'}">地图管理</el-menu-item>
  </el-menu>
</div>
</template>

<script>
export default {
  name: "Aside",
  data(){
    return{
      path:this.$route.path
    }
  }
}
</script>

<style scoped>

</style>